function geturlitem(url, name) {
			urlstart = url.indexOf(name + "=");
			if(urlstart != -1) {
				urlstart = urlstart + name.length + 1;
				urlend = url.indexOf("&", urlstart);
				if(urlend == -1) {
					urlend = url.length;
				}
				return url.substring(urlstart, urlend);
			}
			return "";
		}

		function getPageUrl() {
			var index = location.pathname.lastIndexOf("/") + 1;
			var i = location.pathname.substr(index);
			return i;
		}